Day–Stout–Warren algorithm